package cn.dcw.pethome.org.mapper;



import cn.dcw.pethome.org.domain.Employee;
import cn.dcw.pethome.org.dto.EmployeeDto;
import cn.dcw.pethome.org.query.EmployeeQuery;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

/*
员工
 */
@Mapper
public interface EmployeeMapper {
    //增加
    void add(Employee employee);

    //删除
    void delete(Long id);

    //批量删除
    void batchDel(Long[] ids);

    //修改
    void update(Employee employee);

    //查询单条数据
    Employee findOne(Long id);

    //查询所有
    List<Employee> findAll();


    //查询总条数
    Long totals();

    //分页查询
   List<EmployeeDto> pageQuery(EmployeeQuery EmployeeQuery);

    //通过用户名查询对象
    Employee findByName(String username);


    Employee findByLoginInfoId(Long id);
}
